package program;

public class Train {

	static Integer IDcounter;
	private int id;
	private OnboardGPS gps;
	private Station nextStation;
	private Station destStation; //this iteration, same as nextStation
	
	public Train() {
		if(IDcounter==null)
			IDcounter = 0;
		else
			IDcounter++;
		id = IDcounter;
	}

	public void setNextStation(Station next){
		nextStation = next;
	}
	
	public void setDestStation(Station dest){
		destStation = dest;
	}
	public int getID(){
		return id;
	}
	
}
